package cn.jbolt.core.kit;

import com.alibaba.ttl.TransmittableThreadLocal;

public class JBoltHttpSchemeKit {
	/**
	 * 针对JBolt平台域名请求类型scheme ThreadLocal
	 */
	private static final TransmittableThreadLocal<String> schemeTL = new TransmittableThreadLocal<String>();

	/**
	 * 删除
	 */
	public static void remove() {
		schemeTL.remove();
	}


	/**
	 * 获得
	 * @return
	 */
	public static String get() {
		return schemeTL.get();
	}
	/**
	 * 获得带://
	 * @return
	 */
	public static String getFull() {
		return schemeTL.get()+"://";
	}
	/**
	 * 设置
	 * @param scheme
	 */
	public static void set(String scheme) {
		schemeTL.set(scheme);
	}
}
